<div class="container">
    <div id="chart">
        <div class="f">
            <table class="table table-bordered">
                <legend><h3>黑名单</h3></legend>
                <a href="addblacklist.php" class="btn btn-default" type="button">添加成员</a>
                <tr class="th">
                    <td>序号</td>
                    <td widtd="60%">姓名</td>
                    <td widtd="40">删除记录</td>
                </tr>
                <?php foreach (blacklist() as $key => $value): ?>
                    <tr>
                        <td><?php echo htmlspecialchars($key + 1); ?></td>
                        <td><?php echo htmlspecialchars($value['name']); ?></td>
                        <td>
                            <form action='../php/del_blacklist.php' method='POST'>
                                <input type='hidden' value='<?php echo htmlspecialchars($value['name']); ?>' name='name'>
                                <button class='btn btn-default' type='submit'>删除</button>
                            </form>
                        </td>
                    </tr>
                <?php endforeach; ?>
            </table>
        </div>
    </div>
</div>